

import React, { Component } from 'react';
import {
  Text,
  View,
  StyleSheet
} from 'react-native';
import _style from "../../global/index";
import { Avator } from "../../components/index";
import { getUserList } from "../../api/request/home";
class Person extends Component {
  constructor(props) {
    super(props);
  }
  componentDidMount() {
    this.getData();
  }
  getData() {
    getUserList({ name: 1 }).then((res) => {
      console.log("res", res)
    }).catch((err) => {
      console.log(err);
    })
  }
  render() {
    return (
      <View>
        <Avator onPress={() => { this.props.navigation.push('UserInfo',{id:12}) }} />
        <Text>灭偶  </Text>
      </View>
    );
  }
};

const styles = StyleSheet.create({

});

export default Person;
